package com.isky.visual.exception;

import com.isky.visual.result.CodeMsg;
import lombok.Data;

/**
 * @ClassName : GlobalExceptionHandler
 * @Description : 全局异常
 * @Author :wudl
 * @Date: 2020-04-12 19:18
 */
@Data
public class GlobalException extends RuntimeException {
    private CodeMsg cm;

    public GlobalException(CodeMsg cm) {
        super(cm.toString());
        this.cm = cm;
    }

    public CodeMsg getCm() {
        return cm;
    }

}
